home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cug173.zip / LEX.HLP < prev    next >
Text File  |  1984-01-18  |  3KB  |  122 lines

  1. /*
  2.   HEADER: CUG    nnn.nn;
  3.   TITLE:         LEX - A Lexical Analyser Generator
  4.   VERSION:       1.0 for IBM-PC
  5.   DATE:          Sep 29, 195
  6.   DESCRIPTION:   A Lexical Analyser Generator. From UNIX
  7.   KEYWORDS:      Lexical Analyser Generator YACC C PREP
  8.   SYSTEM:        IBM-PC and Compatiables
  9.   FILENAME:      LEX.HLP
  10.   WARNINGS:      This program is not for the casual user. It will
  11.                  be useful primarily to expert developers.
  12.   CRC:           N/A
  13.   SEE-ALSO:      YACC and PREP
  14.   AUTHORS:       Scott Guthery 11100 leadfwood lane Austin, TX 78750
  15.   COMPILERS:     DESMET-C
  16.   REFERENCES:    UNIX Systems Manuals
  17. */
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.                      LEX - Lexical Analyzer Generator
  86.                      ================================
  87.  
  88.   LEX is a program which will generate a table-driven lexical analyzer in
  89.   C.  It takes as it's input a lexical specification in a special
  90.   language which supports "regular expression" notation.  The theory and
  91.   operation of LEX is somewhat complex, so it is suggested that you read
  92.   the LEX documentation before trying to use LEX.
  93.  
  94.   LEX normally reads the grammar from the standard input, writing the C
  95.   program to the file 'lextab.c'.  It may be further controlled by using
  96.   the following flags upon invocation:
  97.  
  98.         -i filename     The grammar is read from 'filename'.
  99.         -o filename     The analyser is written to 'filename'.
  100.         -t name         The default finite-state automaton is named
  101.                         lextab (and it is, by default, written to file
  102.                         'lextab.c').  The -t switch causes the internal
  103.                         tables to be named 'name' and, if the -o switch
  104.                         is not given, written to file 'name.c'.  This is
  105.                         necessary if the processor-switching capabilities
  106.                         described in a later section are to be used.
  107.         -e name         "Easy" command line. "-e name" is equivalent to
  108.                         typing:
  109.                                  -i name.LXI -o name.C -t name
  110.  
  111.                         Do not include device names or file extensions on
  112.                         the "easy" command line.
  113.  
  114.         -v [filename]   Internal state info is written to filename.
  115.                         If filename not present, state information is
  116.                         written to file 'lex.out.'
  117.         -d              Enable various debugging printouts.
  118.         -s              Generate analyzer without references to standard
  119.                         I/O.  Used for programs which do not employ the
  120.                         standard I/O functions.
  121.  
  122.